import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
// @ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/display.css'
import '@/styles/index.scss'
import 'uno.css'

import SvgIcon from './components/SvgIcon.vue'
import './assets/iconfont/iconfont.js';
const app = createApp(App)
// @ts-ignore
import { setupStore } from '@/store'
setupStore(app)

// @ts-ignore
import { setupRouter } from "@/router";
setupRouter(app)
import init from './init'

app.component('SvgIcon', SvgIcon);
app.use(ElementPlus, {locale: zhCn})
app.use(init)
app.mount('#app')
